package com.user.dao

import com.data.bean.ThemeScreenshot
import com.data.entity.ThemeScreenshotUtils
import org.apache.ibatis.annotations.Param
import org.springframework.stereotype.Repository

/**
 * FileName: ThemeScreenshotAdminDao
 * Author:   HingLo
 * Date:     2017/11/6 12:02
 * Description:
 */
@Repository
interface ThemeScreenshotAdminDao {
    /**
     * 查询主题的全部截图
     */
    fun listThemeScreenshotAdminDao(tid: String): List<ThemeScreenshot>?

    /**
     * 根据截图的id 确定唯一的截图
     *
     * 返回该截图的名称
     */
    fun themeScreenshotByIdDao(id: String): String

    /**
     * 删除图片，首先保证这个主题没有上线，还在审核中
     *
     * @param id 图片的id
     * @param tid 主题的Id
     * @return
     */
    fun deleteThemeScreenshotAdminDao(@Param("tid") tid: String, @Param("id") id: String): Int

    /**
     * 修改截图
     */
    fun changeThemeScreenshotAdminDao(@Param("id")id: String,@Param("image") image: String): Int

    /**
     * 修改机截图的其他信息
     */

    fun changeThemeScreenshotInfoAdminDao(themeScreenshotUtils: ThemeScreenshotUtils): Int

    /**
     * 插入主题的截图
     */
    fun saveMassageDao(themeScreenshot: ThemeScreenshot): Int

    /***
     * 排序
     */
    fun changeThemeScreenshotSoftAdminDao(id:String): Int


}
